package com.tcfvic.client.pojos;
// Generated 29/03/2010 9:10:02 PM by Hibernate Tools 3.1.0.beta4

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * Personjsp generated by hbm2java
 */
@Entity
@Table(name="personjsp"
    
, uniqueConstraints = {  }
)

public class Personjsp  implements java.io.Serializable {


    // Fields    

     private PersonjspId id;
     private Person person;
     private Jsp jsp;
     private String jspid;
     private String consultantsname;
     private String managersname;
     private String managersemail;
     private String consultantsemail;
     private Date dateofregistration;
     private String notes;
     private String consultantphone; 
     private String consultantmobile;
     private String managerphone;
     private String managermobile; 
	private String registered;
     private String registrationstream;


    // Constructors

    /** default constructor */
    public Personjsp() {
    }

	/** minimal constructor */
    public Personjsp(PersonjspId id, Person person, Jsp jsp) {
        this.id = id;
        this.person = person;
        this.jsp = jsp;
    }
    
    /** full constructor */
    public Personjsp(PersonjspId id, Person person, Jsp jsp, String jspid, String consultantsname, String managersname, String managersemail, String consultantsemail, Date dateofregistration, String notes
    		, String consultantphone, String consultantmobile, String managerphone, String managermobile, String registered, String registrationStream) {
        this.id = id;
        this.person = person;
        this.jsp = jsp;
        this.jspid = jspid;
        this.consultantsname = consultantsname;
        this.managersname = managersname;
        this.managersemail = managersemail;
        this.consultantsemail = consultantsemail;
        this.dateofregistration = dateofregistration;
        this.notes = notes;
        this.consultantphone = consultantphone;
        this.consultantmobile = consultantmobile;
        this.managerphone = managerphone;
        this.managermobile = managermobile;
        this.registered = registered;
        this.registrationstream = registrationStream;
    }
    

   
    // Property accessors
    @EmbeddedId
    @AttributeOverrides( {
        @AttributeOverride(name="personId", column=@Column(name="Person_id", unique=false, nullable=false, insertable=true, updatable=true) ), 
        @AttributeOverride(name="jspId", column=@Column(name="JSP_id", unique=false, nullable=false, insertable=true, updatable=true) ) } )

    public PersonjspId getId() {
        return this.id;
    }
    
    public void setId(PersonjspId id) {
        this.id = id;
    }
    @ManyToOne(cascade={},
        fetch=FetchType.LAZY)
    
        @JoinColumn(name="Person_id", unique=false, nullable=false, insertable=false, updatable=false)

    public Person getPerson() {
        return this.person;
    }
    
    public void setPerson(Person person) {
        this.person = person;
    }
    @ManyToOne(cascade={},
        fetch=FetchType.LAZY)
    
        @JoinColumn(name="JSP_id", unique=false, nullable=false, insertable=false, updatable=false)

    public Jsp getJsp() {
        return this.jsp;
    }
    
    public void setJsp(Jsp jsp) {
        this.jsp = jsp;
    }
    @Column(name="jspid", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getJspid() {
        return this.jspid;
    }
    
    public void setJspid(String jspid) {
        this.jspid = jspid;
    }
    @Column(name="consultantsname", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getConsultantsname() {
        return this.consultantsname;
    }
    
    public void setConsultantsname(String consultantsname) {
        this.consultantsname = consultantsname;
    }
    @Column(name="managersname", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getManagersname() {
        return this.managersname;
    }
    
    public void setManagersname(String managersname) {
        this.managersname = managersname;
    }
    @Column(name="managersemail", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getManagersemail() {
        return this.managersemail;
    }
    
    public void setManagersemail(String managersemail) {
        this.managersemail = managersemail;
    }
    @Column(name="consultantsemail", unique=false, nullable=true, insertable=true, updatable=true, length=100)

    public String getConsultantsemail() {
        return this.consultantsemail;
    }
    
    public void setConsultantsemail(String consultantsemail) {
        this.consultantsemail = consultantsemail;
    }

    
    @Column(name="consultantphone", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getConsultantsphone() {
        return this.consultantphone;
    }
    
    public void setConsultantsphone(String consultantphone) {
        this.consultantphone = consultantphone;
    }
    @Column(name="consultantmobile", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getConsultantmobile() {
        return this.consultantmobile;
    }
    
    public void setConsultantmobile(String consultantmobile) {
        this.consultantmobile = consultantmobile;
    }
    
    
    @Column(name="managermobile", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getManagermobile() {
        return this.managermobile;
    }
    
    public void setManagermobile(String managermobile) {
        this.managermobile = managermobile;
    }
    @Column(name="managerphone", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getManagerphone() {
        return this.managerphone;
    }
    
    public void setManagerphone(String managerphone) {
        this.managerphone = managerphone;
    }
    @Column(name="registered", unique=false, nullable=true, insertable=true, updatable=true, length=45)

    public String getRegistered() {
        return this.registered;
    }
    
    public void setRegistered(String registered) {
        this.registered = registered;
    }
    @Column(name="registrationstream", unique=false, nullable=true, insertable=true, updatable=true, length=45)
    
    public String getRegistrationstream() {
    	return this.registrationstream;
    }
    
    public void setRegistrationstream(String registrationstream) {
    	this.registrationstream = registrationstream;
    }
    
    
    
    
    
    @Column(name="dateofregistration", unique=false, nullable=true, insertable=true, updatable=true, length=10)

    public Date getDateofregistration() {
        return this.dateofregistration;
    }
    
    public void setDateofregistration(Date dateofregistration) {
        this.dateofregistration = dateofregistration;
    }
    @Column(name="notes", unique=false, nullable=true, insertable=true, updatable=true, length=5000)

    public String getNotes() {
        return this.notes;
    }
    
    public void setNotes(String notes) {
        this.notes = notes;
    }
   








}
